<?php

namespace App\Http\Controllers\user;

use App\Dao\LineUpPriceDao;
use App\Dao\OrdersDao;
use App\Dao\VipOrderDao;
use App\Services\Logger;
use App\Services\PayServices;

class NoticeController extends BaseController
{
    public function notice_pay_price()
    {
        $result = PayServices::get_app()->handlePaidNotify(function ($message,$fail){
            Logger::info1('pay_notice',['llllll'=>request()->post()]);

            LineUpPriceDao::dataPrices($message['out_trade_no']);

        });
    }
    public function notice_pay_price_order()
    {
        $result = PayServices::get_app()->handlePaidNotify(function ($message,$fail){
            Logger::info1('pay_notice',['llllll'=>request()->post()]);

            OrdersDao::noticeOrder($message['out_trade_no']);

        });
    }
}
